@isTest

private class testUpdateOutletToSMSWS 
{
      static testMethod  void test()
     {
   
       Profile p = [select id from profile where Name='System Administrator' or name = '系统管理员' limit 1];
       
        User u = new User(alias = 'standtss', email='sdard2211111r@testorgss.com',
        emailencodingkey='UTF-8', lastname='Testing', languagelocalekey='en_US',Title__c='TSR',
        localesidkey='en_US', profileid = p.Id,UserCity__c='广州',IsActive=true,
        UserAreaValue__c='广州区域',UserSubRegion__c='华南一区',UserRegion__c='华南区',
        timezonesidkey='America/Los_Angeles', username='stsers@testorg.com');
        
        insert u;  
        
        System.runAs(u)
        {
           UpdateOutletToSMSWS.GetOutletList(dateTime.now().addDays(-1)); 
           list<Account> lacc=[select OUTLETCODE__C, WITH_NC_OR_NOT__C from Account limit 10];
           UpdateOutletToSMSWS.getOutletListAndUpdate(lacc,dateTime.now().addDays(-1));
        }
      }
}